// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.liuxinlong.modules.dao.UserLevelDao;
import com.liuxinlong.modules.entity.UserLevel;
import com.liuxinlong.modules.mapper.UserLevelMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class UserLevelDaoImpl extends ServiceImpl<UserLevelMapper, UserLevel> implements UserLevelDao {

	@Override
	public List<UserLevel> pageUserLevelList(Map<String, Object> queryParam) {
		return baseMapper.pageUserLevelList(queryParam);
	}

	@Override
	public int getUserLevelCount(Map<String, Object> queryParam) {

		return baseMapper.getUserLevelCount(queryParam);
	}

	@Override
	public void addUserLevel(UserLevel role) {
		baseMapper.insert(role);
	}

	@Override
	public void updateUserLevel(UserLevel role) {
		baseMapper.updateById(role);
	}

	@Override
	public void deleteUserLevel(String roleId) {
		baseMapper.deleteById(roleId);
	}

	@Override
	public Map<String, Map<String, String>> getUserLevelMap() {
		return baseMapper.getUserLevelMap();
	}

	@Override
	public List<UserLevel> getUserLevelList() {
		return baseMapper.getUserLevelList();
	}

	@Override
	public Map<String, Map<String, String>> getUserLevelMapByName() {
		return baseMapper.getUserLevelMapByName();
	}

	@Override
	public UserLevel getUserLevelBySn(String sn) {
		return baseMapper.getUserLevelBySn(sn);
	}

}
